package com.qinglei.recoup.system.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qinglei.recoup.system.domain.NurseBed;
import com.qinglei.recoup.system.pojo.BedVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author syp
 */
public interface NurseBedMapper extends BaseMapper<NurseBed> {
    /**
     * 查询护工绑定的床位
     * @param userId
     * @return
     */
    List<BedVO> selectBedListByNurse(Long userId);

    /**
     * 根据床位查询护工ID
     * @param bedId
     * @return
     */
    List<Long> selectNurseIdsByBed(Integer bedId);

    List<Integer> getUserIdsByBedId(@Param("bedIds") List<Integer> bedIds);
}
